package com.sc.vipface.listener;

import com.sc.vipface.utils.ApplicationContextUtil;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

public class MainBusListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        ApplicationContextUtil.setContext(contextRefreshedEvent.getApplicationContext());
    }
}
